package pers.nickerg.util;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Properties;

public class MysqlUtil {
    public static Connection getConnection(Properties properties) {
        try {
            return JdbcUtil.getConnection(properties);
        } catch (Exception e) {
            e.printStackTrace();
        }

        return null;
    }

    public static void releaseDB(PreparedStatement ps) {
        JdbcUtil.releaseDB(ps);
    }

    public static void releaseDB(ResultSet resultSet, Statement statement, Connection connection) {
        JdbcUtil.releaseDB(resultSet, statement, connection);
    }
} 